package icedot.library.common.base;


import android.support.v4.app.DialogFragment;

public class BaseDlgFragment extends DialogFragment
{
	@Override
	public void onResume()
	{
		super.onResume();
		if(isAdded())
		{
			setShowsDialog(true);
		}
	}
	
	@Override
	public void onPause()
	{
		super.onPause();
		if(isVisible())
		{
			setShowsDialog(false);
		}
	}
}
